package binarization;

import java.awt.Image;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.IOException;

import javax.imageio.ImageIO;

public class Binarization {
	public static void main(String[] args) throws FileNotFoundException,
			IOException {

		Image primaryImage = OtsuBinarize.binarizeToPrimary(ImageIO
				.read(new File("Images/Android/first.jpg")));

		// Util.showImage(primaryImage);

		Image secundaryImage = OtsuBinarize.binarizeToSecundary(ImageIO
				.read(new File("Images/Android/first.jpg")));


		// convert the image to a binary bitmap source
		// LuminanceSource source = new
		// BinaryBitmap bitmap = new BinaryBitmap(new HybridBinarizer(source));
		// BinaryBitmap binaryBitmap= new BinaryBitmap()
		// Util.showImage(secundaryImage);

	}

}
